package com.ehome.poct.core.service.report;

import com.ehome.core.service.AbstractCrudServiceImpl;
import com.ehome.poct.core.api.dto.report.ConfAnalysisPermissionDTO;
import com.ehome.poct.core.api.virtual.ConfAnalysisPermissionService;
import com.ehome.poct.core.repository.report.ConfAnalysisPermissionRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
/**
 * 血常规报告解读权限配置SerivceImlp
 *
 * @author wuyingchao
 * @Date 2022-09-06 09:57
 */
@Service
@RequiredArgsConstructor
public class ConfAnalysisPermissionServiceImpl extends AbstractCrudServiceImpl<ConfAnalysisPermissionDTO> implements ConfAnalysisPermissionService {
    private final ConfAnalysisPermissionRepository permissionRepository;


    @Override
    public Boolean hasPermission(String code, Long clinicId) {
        return permissionRepository.hasPermission(code, clinicId);
    }
}